from datetime import datetime


def account(func):

    def real_worker(*args, **kwargs):
        now = datetime.now()
        print('calling time: %s' % now.strftime('%F %T'))
        print('arguments:', args, kwargs)
        return func(*args, **kwargs)

    return real_worker


def dec1(func):

    func.extra_data = 'added by decorator'
    return func


@dec1
def add(num1, num2):
    return num1 + num2

print(add.__name__)
print(add.__dict__)
